package com.appwx.sdk.http;

import com.appwx.sdk.model.AppParameters;
import com.appwx.sdk.model.Token;
import com.appwx.sdk.view.WeiboException;


public class Oauth2AccessTokenHeader extends HttpHeaderFactory {

    @Override
    public String getWeiboAuthHeader(String method, String url, AppParameters params,
            String app_key, String app_secret, Token token) throws WeiboException {
        if(token == null){
            return null;
        }
        return "OAuth2 " + token.getToken();
        
    }

	@Override
	public AppParameters generateSignatureList(AppParameters bundle) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void addAdditionalParams(AppParameters des, AppParameters src) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void parseUrlParameters(String url, AppParameters signatureBaseParams)
			throws WeiboException {
		// TODO Auto-generated method stub
		super.parseUrlParameters(url, signatureBaseParams);
	}

	@Override
	public String generateSignature(String data, Token token)
			throws WeiboException {
		// TODO Auto-generated method stub
		return null;
	}
	

}
